<template>
    <ul>
        <li>id:{{ query.id }}</li>
        <li>title:{{ query.title }}</li>
        <li>content:{{ query.content }}</li>
    </ul>
</template>

<script lang="ts">
export default {
    name:'NewsDetails'
}
</script>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import { toRefs } from 'vue';
/* 接受参数 */
let route = useRoute()
let { query } = toRefs(route)

</script>